<%-- 
    Document   : book
    Created on : Oct 12, 2011, 10:06:12 PM
    Author     : Sammy
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<jsp:include page="/header.jsp"></jsp:include>
<h1>
    Itinary Details
</h1>
<h2>
    Please review that below information is correct:
</h2>
<br />
<table>
    <tr>
        <td>Date</td>
        <td style="text-transform: capitalize">${date} ${service.hour}</td>
    </tr>
    <tr>
        <td>Bandara Keberangkatan</td>
        <td>${service.getOrigin()}</td>
    </tr>
    <tr>
        <td>Bandara Tujuan</td>
        <td>${service.getDestination()}</td>
    </tr>
    <tr>
        <td>Kelas</td>
        <td>${service.getClassName()}</td>
    </tr>
    <tr>
        <td>Tarif</td>
        <td>${service.getFare()}</td>
    </tr>
</table>
<br />
<form method="post" action="./flights?action=book" name="itinary">
    <fieldset>
        <input type="hidden" name="service_id" value="${service.getID()}" />
        <input type="hidden" name="date" value="${date}" />
        <input type="hidden" name="hour" value="${service.getHour()}" />
        <input type="submit" name="submit" value="Book Now" />
    </fieldset>
</form>
<jsp:include page="/footer.jsp"></jsp:include>
